﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadProps.Validation
{
    public class ValidationArgs : IHavePropId
    {
        public IProp Prop { get; private set; }
        public PropId PropId { get { return Prop.PropId; } }
        public object Owner { get { return Prop.Owner; } }

        public ValidationArgs(IProp prop)
        {
            this.Prop = prop.ThrowIfNull("prop");
        }
    }
}
